import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
    routes: [{
            path: '/',
            component: () =>
                import ('../components/page/Login.vue'),
        },
        {
            path: '/Home',
            component: () =>
                import ( /* webpackChunkName: "home" */ '../components/common/Home.vue'),
            meta: {
                title: '自述文件'
            },
            children: [{
                    path: '/dashboard',
                    component: () =>
                        import ( /* webpackChunkName: "dashboard" */ '../components/page/Dashboard.vue'),
                    meta: {
                        title: '系统首页'
                    }
                },
                {
                    path: '/icon',
                    component: () =>
                        import ( /* webpackChunkName: "icon" */ '../components/page/Icon.vue'),
                    meta: {
                        title: '自定义图标'
                    }
                },
                {
                    path: '/table',
                    component: () =>
                        import ( /* webpackChunkName: "table" */ '../components/page/BaseTable.vue'),
                    meta: {
                        title: '系统管理'
                    }
                },
                {
                    path: '/customer',
                    component: () =>
                        import ( /* webpackChunkName: "form" */ '../components/logistics/customer.vue'),
                    meta: {
                        title: '客户管理'
                    }
                },
                {
                    path: '/userment',
                    component: () =>
                        import ( /* webpackChunkName: "form" */ '../components/logistics/userment.vue'),
                    meta: {
                        title: '用户管理'
                    }
                },
                {
                    path: '/Shelf',
                    component: () =>
                        import ( /* webpackChunkName: "form" */ '../components/logistics/Shelf.vue'),
                    meta: {
                        title: '仓库管理'
                    }
                },
                {
                    path: '/stock',
                    component: () =>
                        import ( /* webpackChunkName: "form" */ '../components/logistics/stockquery.vue'),
                    meta: {
                        title: '库存查询'
                    }
                }, ,
                {
                    path: '/Inventory',
                    component: () =>
                        import ( /* webpackChunkName: "form" */ '../components/logistics/Inventory.vue'),
                    meta: {
                        title: '库存查询'
                    }
                },
                {
                    path: '/commodity',
                    component: () =>
                        import ( /* webpackChunkName: "form" */ '../components/logistics/commodity.vue'),
                    meta: {
                        title: '货品管理'
                    }
                },
                {
                    path: '/maintain',
                    component: () =>
                        import ( /* webpackChunkName: "form" */ '../components/logistics/maintain.vue'),
                    meta: {
                        title: '货品信息维护'
                    }
                },
                {
                    path: '/Consignee',
                    component: () =>
                        import ( /* webpackChunkName: "form" */ '../components/logistics/Consignee.vue'),
                    meta: {
                        title: '收货人信息'
                    }
                },
                {
                    path: '/goods',
                    component: () =>
                        import ( /* webpackChunkName: "form" */ '../components/logistics/goods.vue'),
                    meta: {
                        title: '货架管理'
                    }
                },
                {
                    path: '/Standing',
                    component: () =>
                        import ( /* webpackChunkName: "form" */ '../components/logistics/Standingbook.vue'),
                    meta: {
                        title: '商品仓储台账'
                    }
                },
                {
                    path: '/report',
                    component: () =>
                        import ( /* webpackChunkName: "form" */ '../components/logistics/reportform.vue'),
                    meta: {
                        title: '仓库变动报表'
                    }
                },
                {
                    path: '/storage',
                    component: () =>
                        import ( /* webpackChunkName: "form" */ '../components/logistics/Userstorage.vue'),
                    meta: {
                        title: '用户仓储费用列表'
                    }
                },
                {
                    path: '/Record',
                    component: () =>
                        import ( /* webpackChunkName: "form" */ '../components/logistics/Recorddetails.vue'),
                    meta: {
                        title: '记录明细'
                    }
                },
                {
                    path: '/Payment',
                    component: () =>
                        import ('../components/logistics/Paymentconfirmation.vue'),
                    meta: {
                        title: '缴费确认'
                    }
                },
                {
                    path: '/order',
                    component: () =>
                        import ('../components/logistics/order.vue'),
                    meta: {
                        title: '入库订单'
                    }
                }, {
                    path: '/order2',
                    component: () =>
                        import ('../components/logistics/order2.vue'),
                    meta: {
                        title: '订单列表'
                    }
                },
                {
                    path: '/orderli',
                    component: () =>
                        import ('../components/logistics/Exorderl.vue'),
                    meta: {
                        title: '订单列表'
                    }
                },
                {
                    path: '/exlis',
                    component: () =>
                        import ('../components/logistics/Exwar.vue'),
                    meta: {
                        title: '出库订单'
                    }

                },
                {
                    path: '/tabs',
                    component: () =>
                        import ( /* webpackChunkName: "tabs" */ '../components/page/Tabs.vue'),
                    meta: {
                        title: 'tab选项卡'
                    }
                },
                {
                    path: '/form',
                    component: () =>
                        import ( /* webpackChunkName: "form" */ '../components/page/BaseForm.vue'),
                    meta: {
                        title: '基本表单'
                    }
                },
                {
                    // 富文本编辑器组件
                    path: '/editor',
                    component: () =>
                        import ( /* webpackChunkName: "editor" */ '../components/page/VueEditor.vue'),
                    meta: {
                        title: '富文本编辑器'
                    }
                },
                {
                    // markdown组件
                    path: '/markdown',
                    component: () =>
                        import ( /* webpackChunkName: "markdown" */ '../components/page/Markdown.vue'),
                    meta: {
                        title: 'markdown编辑器'
                    }
                },
                {
                    // 图片上传组件
                    path: '/upload',
                    component: () =>
                        import ( /* webpackChunkName: "upload" */ '../components/page/Upload.vue'),
                    meta: {
                        title: '文件上传'
                    }
                },
                {
                    // vue-schart组件
                    path: '/charts',
                    component: () =>
                        import ( /* webpackChunkName: "chart" */ '../components/page/BaseCharts.vue'),
                    meta: {
                        title: 'schart图表'
                    }
                },
                {
                    // 拖拽列表组件
                    path: '/drag',
                    component: () =>
                        import ( /* webpackChunkName: "drag" */ '../components/page/DragList.vue'),
                    meta: {
                        title: '拖拽列表'
                    }
                },
                {
                    // 拖拽Dialog组件
                    path: '/dialog',
                    component: () =>
                        import ( /* webpackChunkName: "dragdialog" */ '../components/page/DragDialog.vue'),
                    meta: {
                        title: '拖拽弹框'
                    }
                },
                {
                    // 国际化组件
                    path: '/i18n',
                    component: () =>
                        import ( /* webpackChunkName: "i18n" */ '../components/page/I18n.vue'),
                    meta: {
                        title: '国际化'
                    }
                },
                {
                    // 权限页面
                    path: '/permission',
                    component: () =>
                        import ( /* webpackChunkName: "permission" */ '../components/page/Permission.vue'),
                    meta: {
                        title: '权限测试',
                        permission: true
                    }
                },
                {
                    path: '/404',
                    component: () =>
                        import ( /* webpackChunkName: "404" */ '../components/page/404.vue'),
                    meta: {
                        title: '404'
                    }
                },
                {
                    path: '/403',
                    component: () =>
                        import ( /* webpackChunkName: "403" */ '../components/page/403.vue'),
                    meta: {
                        title: '403'
                    }
                },
                {
                    path: '/donate',
                    component: () =>
                        import ( /* webpackChunkName: "donate" */ '../components/page/Donate.vue'),
                    meta: {
                        title: '支持作者'
                    }
                }
            ]
        },
        {
            path: '/login',
            component: () =>
                import ('../components/page/Login.vue'),
            meta: {
                title: '登录'
            }
        },
        {
            path: '*',
            redirect: '/404'
        }
    ]
});